<template>
  <div>
    <el-button @click="willAdd" type="primary" class="but">添加</el-button>
    <!-- 表格 -->
    <!-- 绑定自定义事件willUpdate -->
    <!-- arr传给list -->
    <list-vue @willUpdate="willUpdate"></list-vue>
    <!-- 弹框 -->
    <!-- 传递info  传递arr-->
    <!-- 绑定自定义事件getlist -->
    <form-vue :info="info" ref="form"></form-vue>
  </div>
</template>
<script>
import listVue from "./components/list.vue";
import formVue from "./components/form.vue";
import { mapGetters, mapActions } from "vuex";
import {toggle} from "../../mixins/index"
export default {
  components: {
    listVue,
    formVue
  },
  mixins:[toggle],
  props: [],
  data() {
    return {


    };
  },
  computed: {
    ...mapGetters({})
  },
  mounted() {
  },
  methods: {
    ...mapActions({}),
  }
};
</script>
<style scoped lang="less">
@import "../../less/index.less";
.but {
  margin: @margin10;
}
</style>